package francis.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class ACGPlayerActivity extends TabActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		this.setContentView(R.layout.main);
		// Resources res = this.getResources();
		
		TabHost tabHost = this.getTabHost();
		//首页
		Intent intent = new Intent().setClass(this, HomeActivity.class);
		TabHost.TabSpec spec = tabHost.newTabSpec("home").setIndicator("home")
				.setContent(intent);
		tabHost.addTab(spec);
		//分类
		intent = new Intent().setClass(this, ClassifyActivity.class);
		spec = tabHost.newTabSpec("classify").setIndicator("classify")
				.setContent(intent);
		tabHost.addTab(spec);
		//搜索
		intent = new Intent().setClass(this, SearchActivity.class);
		spec = tabHost.newTabSpec("search").setIndicator("search")
				.setContent(intent);
		tabHost.addTab(spec);
		//历史
		intent = new Intent().setClass(this, HistoryActivity.class);
		spec = tabHost.newTabSpec("history").setIndicator("history")
				.setContent(intent);
		tabHost.addTab(spec);
		//更多
		intent = new Intent().setClass(this, MoreActivity.class);
		spec = tabHost.newTabSpec("more").setIndicator("more")
				.setContent(intent);
		tabHost.addTab(spec);

		//tabHost.setCurrentTab(0);

	}

}
